#ifndef _MESSAGEBOX_H__
#define _MESSAGEBOX_H__

#include<QWidget>
#include<QString>
#include<QMessageBox>

class CustomMessageBox:public QMessageBox{
    public:
    CustomMessageBox(QWidget *parent = nullptr);


    // QWidget interface
protected:
    void paintEvent(QPaintEvent *event);
};


int question(QWidget* pParent, const QString& text,
             QString btn0Text = QObject::tr("确定"),
             QString btn1Text = QObject::tr("取消"),
             QString btn2Text ="");


int warning(QWidget* pParent, const QString& text);
int information(QWidget* pParent, const QString& text);




#endif //_MESSAGEBOX_H__
